import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
import { BrowserRouter as Router, useRoutes } from 'react-router-dom';
// import { useRoutes } from 'react-router-dom';
import { routes } from '@/router/index';
// import { BrowserRouter as Router } from 'react-router-dom';
function RouterApp() {
    const Outlet = useRoutes(routes);
    return Outlet;
}
function App() {
    // const [count, setCount] = useState(0)
    // const element = useRoutes(routes);
    return (_jsx(_Fragment, { children: _jsx(Router, { children: _jsx(RouterApp, {}) }) }));
}
export default App;
